import { Card } from "antd";

function Pannel(props){
    const a = false;
    return (
        <Card
            title={props.title}
            extra={props.extra ? props.extra : null}
            style={{
              width: '100%'
             }
            }
        >
            {/*相当于 Vue中的slot */}
           {props.children}
      </Card>
    )
}

export default Pannel;